<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	pageContext.setAttribute("ctx", request.getContextPath());
%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>用户登录</title>
		<link rel="stylesheet" type="text/css" href="${ctx }/resources/login/css/style.css" />
		<link rel="stylesheet" type="text/css" href="${ctx }/resources/login/css/body.css" />
	</head>
	<body>
		<div class="container">
			<section id="content">
				<form action="${ctx }/login/submit" method="post">
					<h1>用户登录</h1>
				<c:if test="${not empty error_message }">
					<div>
						<span class="help-block u-errormessage" id="js-server-helpinfo">${error_message }</span>
					</div>
				</c:if>
				<c:if test="${not empty error_code }">
					<div>
						<span class="help-block u-errormessage" id="js-server-helpinfo">${errors[error_code] }</span>
					</div>
				</c:if>
					<div>
						<input type="text" placeholder="账号" required="" id="username" name="${account_field }" value="${account }" />
					</div>
					<div>
						<input type="password" placeholder="密码" required="" id="password" name="${password_field }" />
					</div>
					<div>
						<input type="submit" value="登录" class="btn btn-primary" id="js-btn-login" />
						<span class="is-cookie"><input type="checkbox" name="${isCookie_field }" value="1" />是否保存</span> <!-- <a href="#">忘记密码?</a> -->
					</div>
				</form>
				<!-- form -->
				<!-- <div class="button">
					<span class="help-block u-errormessage" id="js-server-helpinfo">&nbsp;</span>
					<a href="#">下载网盘</a>
				</div>
				button -->
			</section>
			<!-- content -->
		</div>
		<!-- container -->
	</body>
</html>